package main

import "fmt"

type Student struct {
	id   int
	name string
}

func main() {
	var zs Student = Student{1, "张三"}
	fmt.Println(zs)

	// 结构体指针
	var p *Student
	p = &zs
	p.name = "李四"
	fmt.Println(zs)
}
